package com.xbmd.wiki;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@ComponentScan(basePackages = {
    "com.xbmd.wiki", // 扫描当前包及其子包
    "com.xbmd.wiki.controller", // 确保控制器被扫描
    "com.xbmd.wiki.service" // 确保服务层被扫描
})
@MapperScan("com.xbmd.wiki.mapper") // 专门用于扫描MyBatis Mapper接口
public class App {

	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}

}
